package com.xb.controller;

import com.xb.service.IUserRoleService;
import com.xb.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller
 * /api/userRole
 */
@RestController
@RequestMapping("/api/userRole")
public class UserRoleController {
    @Autowired
    private IUserRoleService userRoleService;
    @GetMapping("/getUserRole")
    public Result getUserRole(Integer uid){
        return userRoleService.getUserRole(uid);
    }
}
